package com.springstudy.shiro.entity;

import lombok.Data;

/**
 * @author chenrongrong
 * @since 2020/3/10 16:43
 */
@Data
public class Response {

    private Integer code;
    private String msg;

    public static Response ok() {
        Response response = new Response();
        response.setCode(200);
        response.setMsg("success");

        return response;
    }

    public static Response fail() {
        Response response = new Response();
        response.setCode(500);
        response.setMsg("fail");

        return response;
    }
}
